<?php

class Photo extends \Eloquent {

	// Add your validation rules here
	public static $rules = [
		// 'title' => 'required'
	];
        
	// Don't forget to fill this array
	protected $fillable = ['id', 'title', 'decscription', 'img', 'url', 'category', 'group', 'delif'];
        
        public static function getallactived() {
            return Photo::where('delif', '=', 1)->get();
        }
        public static function getall() {
            return Photo::all();
        }

}